/*
 * Copyright 2011 Google Inc.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package com.locationbasedagent.server;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
import com.google.appengine.api.datastore.Key;

@PersistenceCapable
public class HouseListing {

	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long id;
	  
	@Persistent
	private String listingName;
	  
	@Persistent
	private String listingAddress;
	
	@Persistent
	private String latitude;
	
	@Persistent
	private String longitude;
	  
	@Persistent
	private String listingCity;
	
	@Persistent
	private String listingZip;
	
	@Persistent
	private String listingPrice;
	  
	@Persistent
	private String sellingAgentID;
	
	@Persistent
	private String sellingAgentPhoneNumber;
	
	@Persistent
	private String photoURL1;
	
	@Persistent
	private String photoURL2;
	
	@Persistent
	private String photoURL3;
	
	@Persistent
	private String photoURL4;
	
	@Persistent
	private String photoURL5;
	
	@Persistent
	private String videoURL;
	
	  
	public HouseListing(String listingName, String listingAddress, String listingCity, String listingZip, 
			String sellingAgentID, String sellingAgentPhoneNumber, String latitude, String longitude, String listingPrice, String photo1, 
			String photo2, String photo3, String photo4, String photo5, String video)
	{
		this.listingName = listingName;
		this.listingAddress = listingAddress;
		this.listingCity = listingCity;
		this.listingZip = listingZip;
		this.sellingAgentID = sellingAgentID;
		this.sellingAgentPhoneNumber = sellingAgentPhoneNumber;
		this.latitude = latitude;
		this.longitude = longitude;
		this.listingPrice = listingPrice;
		this.photoURL1 = photo1;
		this.photoURL2 = photo2;
		this.photoURL3 = photo3;
		this.photoURL4 = photo4;
		this.photoURL5 = photo5;
		this.videoURL = video;
	}

	public Long getId() {
		return id;
	}

	public String getListingName() {
		return listingName;
	}

	public void setListingName(String listingName) {
		this.listingName = listingName;
	}

	public String getListingAddress() {
		return listingAddress;
	}

	public void setListingAddress(String listingAddress) {
		this.listingAddress = listingAddress;
	}

	public String getListingCity() {
		return listingCity;
	}

	public void setListingCity(String listingCity) {
		this.listingCity = listingCity;
	}
	
	public String getListingZip() {
		return listingZip;
	}

	public void setListingZip(String listingZip) {
		this.listingZip = listingZip;
	}

	public String getSellingAgentID() {
		return sellingAgentID;
	}

	public void setSellingAgentID(String sellingAgentID) {
		this.sellingAgentID = sellingAgentID;
	}
	
	public String getSellingAgentPhoneNumber() {
		return sellingAgentPhoneNumber;
	}
	
	public void setSellingAgentPhoneNumber(String sellingAgentNumber) {
		this.sellingAgentPhoneNumber = sellingAgentNumber;
	}
	
	public String getLatitude()
	{
		return latitude;
	}
	
	public void setLatitude(String value)
	{
		latitude = value;
	}
	
	public String getLongitude()
	{
		return longitude;
	}
	
	public void setLongitude(String value)
	{
		longitude = value;
	}
  
	public String getListingPrice()
	{
		return listingPrice;
	}
	
	public void setListingPrice(String price)
	{
		listingPrice = price;
	}
	
	public String getPhotoURL1() {
		return photoURL1;
	}

	public void setPhotoURL1(String photoURL1) {
		this.photoURL1 = photoURL1;
	}

	public String getPhotoURL2() {
		return photoURL2;
	}

	public void setPhotoURL2(String photoURL2) {
		this.photoURL2 = photoURL2;
	}

	public String getPhotoURL3() {
		return photoURL3;
	}

	public void setPhotoURL3(String photoURL3) {
		this.photoURL3 = photoURL3;
	}

	public String getPhotoURL4() {
		return photoURL4;
	}

	public void setPhotoURL4(String photoURL4) {
		this.photoURL4 = photoURL4;
	}

	public String getPhotoURL5() {
		return photoURL5;
	}

	public void setPhotoURL5(String photoURL5) {
		this.photoURL5 = photoURL5;
	}

	public String getVideoURL()
	{
		return videoURL;
	}
	
	public void setVideoURL(String video)
	{
		videoURL = video;
	}
  
}
